﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LoginSelect.aspx.cs" Inherits="IYAKASAPortal.Login.LoginSelect" %>

<%@ Register Assembly="gfPage" Namespace="gfPage" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>成都弥荣科技发展有限公司--登录列表</title>
    <script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="../support/tfNiceTable/tfNiceTable.css" />
    <script type="text/javascript" src="../support/tfNiceTable/tfNiceTable.js"></script>
    <script type="text/javascript">
        function getClear() {
            var thetrs = $(".thetr");
            for (var i = 0; i < thetrs.length; i++) {
                thetrs[i].style.background = '#ffffff';
                thetrs[i].cells.item(0).innerHTML = "<img src='../support/tfNiceTable/images/tfNiceTable_Pointer.gif' alt='' />";
            }
        }
        function getSelect() {
            var key = $("#txtUniqueKey").val();
            if (key != '') {
                var thetr = $(".thetr:contains('" + key + "')")[0];
                thetr.style.background = '#f1f1cd';
                thetr.cells.item(0).innerHTML = "<img src='../support/tfNiceTable/images/tfNiceTable_Pointer_Selected.gif' alt='' />";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <script type="text/javascript">
                    function doAjaxShow() {
                        document.getElementById("divNiceTableMessage").style.left = window.parent.document.getElementById("mainContentFrame").scrollWidth / 2 - 200;
                        document.getElementById("divNiceTableMessage").style.top = window.parent.document.getElementById("mainContentFrame").scrollHeight / 2 - 15;
                        document.getElementById("divNiceTableMessage").style.display = "block";
                    }
                </script>
                <asp:HiddenField ID="txtUniqueKey" runat="server" Value="" />
                <div id="divNiceTableMessage" class="tfNiceTableMessage" style="display: none;">正在处理...</div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" style="height: 25px;">
                    <tr>
                        <td class="main_title_left"></td>
                        <td class="main_title_center">&nbsp;成都弥荣科技发展有限公司--登录列表</td>
                        <td class="main_title_right"></td>
                    </tr>
                </table>
                <table width="100%" cellpadding="0" cellspacing="0" border="0" class="mainWidth">
                    <tr>

                        <td>
                            <table class="table_without_border">
                                <tr>
                                    <td>
                                        <img src="../support/tfNiceTable/images/tfNiceTable_Search.gif" alt="" />
                                        选择项目
                    <asp:DropDownList ID="drpJYLB" runat="server" Width="111px" AutoPostBack="True" OnSelectedIndexChanged="DropDownListSelect_SelectedIndexChanged">
                        <asp:ListItem Value="">全部</asp:ListItem>
                        <asp:ListItem Value="A">安检</asp:ListItem>
                        <asp:ListItem Value="Z">综检</asp:ListItem>
                        <asp:ListItem Value="P">环保</asp:ListItem>

                    </asp:DropDownList>
                                        &nbsp;
                    <img src="../support/tfNiceTable/images/tfNiceTable_Search.gif" alt="" />
                                        关键字<asp:TextBox ID="txtKeywords" runat="server"></asp:TextBox>
                                        <asp:Button ID="btnSearch" runat="server" Text="" CssClass="btnSearch" OnClientClick="doAjaxShow();" OnClick="btnSearch_Click" />
                                        <asp:Button ID="btnSearchAll" runat="server" Text="" CssClass="btnSearchAll" OnClientClick="doAjaxShow();" OnClick="btnSearchALL_Click" />
                                    </td>
                                    <td align="right">
                                        <asp:Button ID="btnDelete" runat="server" Text="" CssClass="btnDeleteEnabled" OnClientClick="return confirm('确定要删除当前选中记录?');doAjaxShow();" OnClick="btnDelete_Click" />
                                    </td>
                                </tr>
                            </table>
                            <table border="1" cellspacing="0" cellpadding="3" class="tfNiceTable">
                                <thead>
                                    <tr class="tfNiceTable_head_style">
                                        <td align="center" class="tfNiceTable_head_topleft"></td>
                                        <td style="width: 8%;" align="center">ID</td>
                                        <td style="width: 8%;" align="center">号牌号码</td>
                                        <td style="width: 8%;" align="center">号牌种类</td>
                                        <td style="width: 14%;" align="center">检验类别</td>
                                        <td style="width: 62%;" align="center">检验项目</td>
                                    </tr>
                                </thead>
                                <tbody>
                                    <asp:Repeater ID="rptList" runat="server">
                                        <ItemTemplate>
                                            <tr class="thetr" style="cursor: pointer;" onmouseover="doMouseOver(this);" onmouseout="doMouseOut(this);" onclick="getClear();setSelectedRowData(this,'<%# DataBinder.Eval(Container.DataItem, "ID")%>');">
                                                <td align="center" class="tfNiceTable_body_arrow">
                                                    <img src="../support/tfNiceTable/images/tfNiceTable_Pointer.gif" alt="" /></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "ID")%></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "HPHM")%></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "HPZL")%></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "JYLB")%></td>
                                                <td align="center"><%# getJCXM(DataBinder.Eval(Container.DataItem, "JYXM").ToString())%></td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                                <tr>
                                    <td align="right" colspan="6">
                                        <cc1:GreatPager ID="GreatPager1" runat="server" GenerateNumber="true" OnPageIndexChanging="GreatPager1_PageIndexChanging"></cc1:GreatPager>
                                    </td>
                                    <asp:Timer ID="Timer1" Interval="10000" runat="server" OnTick="Timer1_Tick"></asp:Timer>
                                </tr>
                            </table>
                            <br />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>

